﻿using Models;
using Services.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace Services
{
    [ServiceContract]
    public interface ITaxi
    {
        [OperationContract]
        List<TaiXe> GetAllTaiXeIn5Km(double x, double y);
        [OperationContract]
        bool AddNguoiDung(NguoiDung nguoidung);
        [OperationContract]
        bool UpdateNguoiDung(NguoiDung nguoidung);
        [OperationContract]
        NguoiDung GetNguoiDungByID(int id);
        [OperationContract]
        NguoiDung GetNguoiDungByMaMay(string mamay);
        [OperationContract]
        bool AddTaiXe(TaiXe taixe);
        [OperationContract]
        bool UpdateTaiXe(TaiXe taixe);

        [OperationContract]
        List<TaiXe> GetAllTaiXe();
        [OperationContract]
        List<TaiXe> GetTaiXeByLocation(double x, double y);
    }
}
